home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 3.iso / dist / fw_openssl.idb / usr / freeware / include / openssl / opensslconf.h.z / opensslconf.h
Encoding:
C/C++ Source or Header  |  2001-01-10  |  4.8 KB  |  173 lines

  1. /* opensslconf.h */
  2. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  3.  
  4. /* OpenSSL was configured with the following options: */
  5. #ifdef OPENSSL_ALGORITHM_DEFINES
  6. # ifndef NO_IDEA
  7. #  define NO_IDEA
  8. # endif
  9. #endif
  10. #ifdef OPENSSL_THREAD_DEFINES
  11. # ifndef THREADS
  12. #  define THREADS
  13. # endif
  14. #endif
  15. #ifdef OPENSSL_OTHER_DEFINES
  16. #endif
  17.  
  18. /* crypto/opensslconf.h.in */
  19.  
  20. /* Generate 80386 code? */
  21. #undef I386_ONLY
  22.  
  23. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  24. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  25. #define OPENSSLDIR "/usr/freeware/lib/openssl"
  26. #endif
  27. #endif
  28.  
  29. #define OPENSSL_UNISTD <unistd.h>
  30.  
  31. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  32. #define IDEA_INT unsigned int
  33. #endif
  34.  
  35. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  36. #define MD2_INT unsigned int
  37. #endif
  38.  
  39. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  40. /* I need to put in a mod for the alpha - eay */
  41. #define RC2_INT unsigned int
  42. #endif
  43.  
  44. #if defined(HEADER_RC4_H)
  45. #if !defined(RC4_INT)
  46. /* using int types make the structure larger but make the code faster
  47.  * on most boxes I have tested - up to %20 faster. */
  48. /*
  49.  * I don't know what does "most" mean, but declaring "int" is a must on:
  50.  * - Intel P6 because partial register stalls are very expensive;
  51.  * - elder Alpha because it lacks byte load/store instructions;
  52.  */
  53. #define RC4_INT unsigned char
  54. #endif
  55. #if !defined(RC4_CHUNK)
  56. /*
  57.  * This enables code handling data aligned at natural CPU word
  58.  * boundary. See crypto/rc4/rc4_enc.c for further details.
  59.  */
  60. #define RC4_CHUNK unsigned long long
  61. #endif
  62. #endif
  63.  
  64. #if defined(HEADER_DES_H) && !defined(DES_LONG)
  65. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  66.  * %20 speed up (longs are 8 bytes, int's are 4). */
  67. #ifndef DES_LONG
  68. #define DES_LONG unsigned long
  69. #endif
  70. #endif
  71.  
  72. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  73. #define CONFIG_HEADER_BN_H
  74. #undef BN_LLONG
  75.  
  76. /* Should we define BN_DIV2W here? */
  77.  
  78. /* Only one for the following should be defined */
  79. /* The prime number generation stuff may not work when
  80.  * EIGHT_BIT but I don't care since I've only used this mode
  81.  * for debuging the bignum libraries */
  82. #undef SIXTY_FOUR_BIT_LONG
  83. #define SIXTY_FOUR_BIT
  84. #undef THIRTY_TWO_BIT
  85. #undef SIXTEEN_BIT
  86. #undef EIGHT_BIT
  87. #endif
  88.  
  89. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  90. #define CONFIG_HEADER_RC4_LOCL_H
  91. /* if this is defined data[i] is used instead of *data, this is a %20
  92.  * speedup on x86 */
  93. #undef RC4_INDEX
  94. #endif
  95.  
  96. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  97. #define CONFIG_HEADER_BF_LOCL_H
  98. #define BF_PTR
  99. #endif /* HEADER_BF_LOCL_H */
  100.  
  101. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  102. #define CONFIG_HEADER_DES_LOCL_H
  103. #ifndef DES_DEFAULT_OPTIONS
  104. /* the following is tweaked from a config script, that is why it is a
  105.  * protected undef/define */
  106. #ifndef DES_PTR
  107. #define DES_PTR
  108. #endif
  109.  
  110. /* This helps C compiler generate the correct code for multiple functional
  111.  * units.  It reduces register dependancies at the expense of 2 more
  112.  * registers */
  113. #ifndef DES_RISC1
  114. #undef DES_RISC1
  115. #endif
  116.  
  117. #ifndef DES_RISC2
  118. #define DES_RISC2
  119. #endif
  120.  
  121. #if defined(DES_RISC1) && defined(DES_RISC2)
  122. YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  123. #endif
  124.  
  125. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  126.  * Very mucy CPU dependant */
  127. #ifndef DES_UNROLL
  128. #define DES_UNROLL
  129. #endif
  130.  
  131. /* These default values were supplied by
  132.  * Peter Gutman <pgut001@cs.auckland.ac.nz>
  133.  * They are only used if nothing else has been defined */
  134. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  135. /* Special defines which change the way the code is built depending on the
  136.    CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  137.    even newer MIPS CPU's, but at the moment one size fits all for
  138.    optimization options.  Older Sparc's work better with only UNROLL, but
  139.    there's no way to tell at compile time what it is you're running on */
  140.  
  141. #if defined( sun )        /* Newer Sparc's */
  142. #  define DES_PTR
  143. #  define DES_RISC1
  144. #  define DES_UNROLL
  145. #elif defined( __ultrix )    /* Older MIPS */
  146. #  define DES_PTR
  147. #  define DES_RISC2
  148. #  define DES_UNROLL
  149. #elif defined( __osf1__ )    /* Alpha */
  150. #  define DES_PTR
  151. #  define DES_RISC2
  152. #elif defined ( _AIX )        /* RS6000 */
  153.   /* Unknown */
  154. #elif defined( __hpux )        /* HP-PA */
  155.   /* Unknown */
  156. #elif defined( __aux )        /* 68K */
  157.   /* Unknown */
  158. #elif defined( __dgux )        /* 88K (but P6 in latest boxes) */
  159. #  define DES_UNROLL
  160. #elif defined( __sgi )        /* Newer MIPS */
  161. #  define DES_PTR
  162. #  define DES_RISC2
  163. #  define DES_UNROLL
  164. #elif defined( i386 )        /* x86 boxes, should be gcc */
  165. #  define DES_PTR
  166. #  define DES_RISC1
  167. #  define DES_UNROLL
  168. #endif /* Systems-specific speed defines */
  169. #endif
  170.  
  171. #endif /* DES_DEFAULT_OPTIONS */
  172. #endif /* HEADER_DES_LOCL_H */
  173.